package io.gitee.kotle.player.core.impl.exoplayer

import androidx.media3.common.MediaItem
import io.gitee.kotle.player.core.IPlayer
import kotlinx.coroutines.CoroutineScope

/**
 *
 * 描述：
 *
 * @author Jiale.Wei
 *
 * 创建时间：2023/4/12 16:13
 *
 */
interface IExoPlayerMode : IPlayer.IModel<MediaItem> {
    override suspend fun getMedia(
        scope: CoroutineScope,
        player: IPlayer<MediaItem, *>,
        mediaId: String
    ): MediaItem {
        return MediaItem.Builder()
            .setMediaId(mediaId)
            .setUri(mediaId)
            .build()
    }
}